public class TestThread2 implements Runnable{
    @Override
    public void run() {
        for (int i=0;i<20;i++){
            System.out.println("这里是RUN的第 "+i+" 次");
        }
    }

    public static void main(String[] args) {
        TestThread2 ts1=new TestThread2();

        Thread thread = new Thread(ts1);
        thread.start();
        for (int i=0;i<20;i++){
            System.out.println("这里是main的第 "+i+" 次");
        }
    }
}
